package com.mhc.suzuki.manager;

import com.subaru.common.query.PageResult;
import com.mhc.suzuki.dal.model.CarInfoDO;
import com.mhc.suzuki.dal.query.CarInfoQuery;

import java.util.List;


/**
 * Manager for CarInfo.
 */
public interface CarInfoManager {
    /**
     * query count by query condition.
     */
    int countByQuery(CarInfoQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(CarInfoQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(CarInfoDO record);

    /**
     * insert selective.
     */
    long insertSelective(CarInfoDO record);

    /**
     * select by query condition.
     */
    List<CarInfoDO> selectByQuery(CarInfoQuery query);


    /**
     * select by query condition with page.
     */
    PageResult<CarInfoDO> selectByQueryWithPage(CarInfoQuery query);

    /**
     * select by primary key.
     */
    CarInfoDO  selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective( CarInfoDO record,  CarInfoQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(CarInfoDO record, CarInfoQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(CarInfoDO record);
}
